prune: Add option to traverse refs only
authorColin Walters <walters@verbum.org>
Fri, 16 Nov 2012 17:26:29 +0000 (12:26 -0500)
committerColin Walters <walters@verbum.org>
Fri, 16 Nov 2012 17:50:13 +0000 (12:50 -0500)
commit7861b98673ffcafbbe0a5fc83f5a4bf18e881b1a
treeb23e39e2bb69863050a48000cfd85d5bb99e1720
parent51b1dd7cbd1368e76cb0fcb71c4ea067293b36f1
prune: Add option to traverse refs only

The previous code (unintentionally) only traversed from refs; so data
only reachable from previous commits would be deleted.  That shouldn't
be the default, but we do want to offer it as an option.

So add a --refs-only option.
src/ostree/ot-builtin-prune.c